package com.cx.pull.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * QuestionInfoVO
 *
 * @author chenXin
 * @date 2024/02/27 11:36
 **/
@Data
public class QuestionVO implements Serializable {

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String contentText;

    /**
     * vote数
     */
    private Integer voteCount;

    /**
     * answer数
     */
    private Integer answerCount;

    /**
     * view数
     */
    private Integer viewCount;

    /**
     * 提问者姓名
     */
    private String askerName;

    /**
     * 提问者名声
     */
    private String reputationScore;

    /**
     * 提问时间
     */
    private String askedTime;

    public QuestionVO() {
    }

    public QuestionVO(String title, String contentText, Integer voteCount, Integer answerCount, Integer viewCount,
        String askerName, String reputationScore, String askedTime) {
        this.title = title;
        this.contentText = contentText;
        this.voteCount = voteCount;
        this.answerCount = answerCount;
        this.viewCount = viewCount;
        this.askerName = askerName;
        this.reputationScore = reputationScore;
        this.askedTime = askedTime;
    }

    @Override
    public String toString() {
        return "QuestionVO{" + "title='" + title + '\'' + ", contentText='" + contentText + '\'' + ", voteCount="
            + voteCount + ", answerCount=" + answerCount + ", viewCount=" + viewCount + ", askerName='" + askerName
            + '\'' + ", reputationScore='" + reputationScore + '\'' + ", askedTime='" + askedTime + '\'' + '}';
    }
}